package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 代理商管理对象 zz_agent
 *
 * @author Mr.Wang
 * @date 2025-01-25
 */
public class ZzAgentDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */

    private Long id;
    /**
     * 联系人
     */
    private String contacts;
    /**
     * 代理商名称
     */
    private String agentName;
    /**
     * 代理商等级
     */
    private Long gradeId;
    /**
     * 联系电话
     */
    private String tel;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    /**
     * 区
     */
    private String district;
    /**
     * 详细地址
     */
    private String address;
    /**
     * 正常
     */
    private Integer state;
    /**
     * 招生人数
     */
    private Integer gradeCount;
    /**
     * 添加时间
     */

    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    private LocalDateTime gmtModify;
    /**
     * 逻辑删除(0：未删除 1：id)
     */
    private Integer deleted;
    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";
    /**
     * 渠道
     */
    private String channel;
    /**
     * 省 市 区 集合
     */
    private String[] provinceAndCityAndDistrict;

    /**
     * 查询时候  省 市 区 集合
     */
    private List<String[]> queryProvinceAndCityAndDistrict;

    /**
     * 选择的等级集合
     */
    private List<Long> gradeIdArray;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContacts() {
        return contacts;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public Long getGradeId() {
        return gradeId;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTel() {
        return tel;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getProvince() {
        return province;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return city;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getDistrict() {
        return district;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    public void setGradeCount(Integer gradeCount) {
        this.gradeCount = gradeCount;
    }

    public Integer getGradeCount() {
        return gradeCount;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtModify(LocalDateTime gmtModify) {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() {
        return gmtModify;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public String[] getProvinceAndCityAndDistrict() {
        return provinceAndCityAndDistrict;
    }

    public void setProvinceAndCityAndDistrict(String[] provinceAndCityAndDistrict) {
        this.provinceAndCityAndDistrict = provinceAndCityAndDistrict;
    }

    public List<String[]> getQueryProvinceAndCityAndDistrict() {
        return queryProvinceAndCityAndDistrict;
    }

    public void setQueryProvinceAndCityAndDistrict(List<String[]> queryProvinceAndCityAndDistrict) {
        this.queryProvinceAndCityAndDistrict = queryProvinceAndCityAndDistrict;
    }

    public List<Long> getGradeIdArray() {
        return gradeIdArray;
    }

    public void setGradeIdArray(List<Long> gradeIdArray) {
        this.gradeIdArray = gradeIdArray;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
